<?php
namespace app\index\validate;

use think\Validate;

class CrmOrder extends Validate
{
    protected $rule = [
        'order_type'=>'require',
        'product_id'=>'require',
        'customer_id'=>'require',
        'name'=>'require',
        'phone'=>'require',
        'address'=>'require',
        'defendant_name'=>'require',
        'defendant_phone'=>'require',
        'total'=>'require',
        'ding_price'=>'require',
    ];

    protected $message = [
        'order_type'=>'订单类型不能为空',
        'product_id'=>'产品不能为空',
        'customer_id'=>'客户id不能为空',
        'name'=>'客户姓名不能为空',
        'phone'=>'客户电话不能为空',
        'address'=>'客户地址不能为空',
        'defendant_name'=>'被告姓名不能为空',
        'defendant_phone'=>'被告电话不能为空',
        'total'=>'订单金额不能为空',
        'ding_price'=>'定金不能为空',
    ];

}